﻿using System.Collections.Generic;
using System.Net.Http;
using System.Web.Http;
using Domain;

namespace SilverlightRest.Web.Controllers
{
    public interface IPersonController
    {
        [HttpPost]
        string EnumFun([FromBody] PageType pt);

        [HttpPost]
        string RequestTypeTest(RequestTypeTestRequest requestTypeTestRequest);

        [HttpPost]
        Person GetPerson([FromBody] long id);

        [HttpPost]
        [HttpGet]
        Person UpdatePerson(Person p);

        [HttpPost]
        Person UpdatePersons(IList<Person> persons);

        [HttpPost]
        void DeletePerson([FromBody] long id);

        [HttpPost]
        HttpResponseMessage KillPerson([FromBody] long id);

        [HttpPost]
        string ReverseName([FromBody] string name);

        [HttpPost]
        string Echo([FromBody] string input);
    }
}